var expect = require('chai').expect;
var extend = require('../../../static/util/lang.js').extend;

describe('lang', function(){
	describe('#extend', function(){
		it('should mix properties into target object.', function(){
			var result = {};
			var a = {name:'Meng', position : 'FD'};
			var b = {age : 22};

			extend(result, a);
			extend(result, b);

			expect(result).to.have.a.property('name', 'Meng');
			expect(result).to.have.a.property('position', 'FD');
			expect(result).to.have.a.property('age', 22l);
		})
	})
})